<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Page 1</title>
</head>
<body>
    <input type="text" id="inputBox" placeholder="Enter some data">
    <button onclick="storeData()">Store Data</button>

    <script>
        function storeData() {
            const inputData = document.getElementById('inputBox').value;
            localStorage.setItem('storedData', inputData);
        }
    </script>
</body>
</html>